package com.workoutdiary.data;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;

public interface IDbManager {

	Connection createConnection();
	boolean close(final Connection conn);
	void startTransaction(final Connection conn);
	void commitTransaction(final Connection conn);
	void rollbackTransaction(final Connection conn);
	Statement createStatement(final Connection conn);
	boolean close(final Statement statement);
	PreparedStatement createPreparedStatement(final String sql, final Connection conn);
	boolean close(final PreparedStatement prepaerdStatement);
	boolean close(final ResultSet resultSet);
	
}
